package com.icehand.payment.admin.v1.controller;

import com.icehand.common.dto.PageDto;
import com.icehand.common.result.BizResult;
import com.icehand.mybatis.payment.mapper.AppMapper;
import com.icehand.payment.admin.v1.service.AdminPayServiceV1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author icehand
 */
@RestController
@RequestMapping("/admin/v1")
public class AdminPayControllerV1 {
    private final AdminPayServiceV1 adminPayServiceV1;

    @Autowired
    public AdminPayControllerV1(AdminPayServiceV1 adminPayServiceV1) {
        this.adminPayServiceV1 = adminPayServiceV1;
    }

    @GetMapping("/pay/apps")
    public BizResult apps(@RequestBody PageDto pageDto){
        return adminPayServiceV1.getApps(pageDto);
    }
}
